<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Benvenuto cliente</title>
<link rel="stylesheet" type="text/css" href="resources/css/style.css">
<script type="text/javascript" src="resources/js/jquery-1.7.1.js"></script>
<script type="text/javascript" src="resources/js/utility.js"></script>
<script type="text/javascript">
	$(document).ready(
		function() {
			$.ajax({
				url :  "getUsername.htm",
				type : "POST",
				success : function(res) {
					if(res != null || res != "undefined")
						$("#welcomeMessage").html("Benvenuto " + res);
					else
						redir("loginPage.htm");
				}
			});
		}
	);
</script>
</head>
<body>
	<div class="box">
		<h1 id="welcomeMessage">
			Benvenuto
		</h1>
		<ul>
			<li>
				<h4>
					<a href="#" onclick="redir('updateInfo.htm')">Modifica Dati Personali</a>
				</h4>
			</li>
			<li>
				<h4>
					<a href="#" onclick="redir('uploadMyFile.htm')">Stampa un mio PDF</a>
				</h4>
			</li>
			<li>
				<h4>
					<a href="#" onclick="redir('storicoOrdiniUser.htm')">Storico Ordini e Stampe</a>
				</h4>
			</li>
		</ul>
	</div>
</body>
</html>